//
//  HLLiveRankRequest.m
//  YueYue
//
//  Created by hulu001 on 2024/3/13.
//

#import "HLLiveRankRequest.h"

@implementation HLLiveRankRequest
{
    NSString *_room;
}

- (id)initWithRoom:(NSString *)room
{
    self = [super init];
    
    if (self) {
        _room = room;
    }
    
    return self;
}

- (NSString *)requestUrl
{
    return @"/get/my/rank";
}

- (YTKRequestMethod)requestMethod
{
    return YTKRequestMethodGET;
}

- (id)requestArgument
{
    return @{@"liveRoomCode":_room};
}

- (HLLiveUserModel *)data;
{
    
    NSDictionary *data = [self.result valueForKey:@"data"];
    
    return [HLLiveUserModel mj_objectWithKeyValues:data];
}

@end
